﻿@model Auction_Intranet.Models.PictureModelAdd

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("AddPicture", "Admin", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Add picture</legend>

        <div class="editor-label">
            @Html.HiddenFor(model => model.roomId)
        </div>
        <div class="editor-field">
            <input name="ImageUploaded" type="file" />
            @Html.ValidationMessageFor(model => model.ImageUploaded)
        </div>

        <p>
            <input type="submit" value="Add picture" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back", "Rooms")
</div>
